long fact_do(long n){
    long res = 1;
    do{
        res *= n;
        n = n-1;
    } while (n>1);
    return res;
}